package com.bdqn.zhao.controller;

import com.bdqn.zhao.service.IpParkimgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * <p>
 * 园区图片表 前端控制器
 * </p>
 *
 * @author zhangsan
 * @since 2023-05-10
 */
@Controller
@RequestMapping("/ipParkImg")
public class IpParkimgController {

    @Autowired
    public IpParkimgService ipParkimgService;

    // 删除图片
    // 园区列表 -- 根据 图片id 删除对应图片信息
    @GetMapping("/ipParkImg/{parkimgId}")
    public Map<String, Object> deleteImage(@PathVariable int parkimgId) {
        return ipParkimgService.deleteImage(parkimgId);
    }


}
